<div id="main-content">
    <div id="main" class="main">
        <div class="spin-head clearfix">
            <div id="upload" class="fl">
                <a href="{:U('Menu/add', array('parent_id'=>0))}" class="uploadify-button">添加菜单</a>
                <a href="javascript:;" onclick="sort()" class="uploadify-button">排序</a>
            </div>
        </div>
        <div class="spin-cont">
            <table>
                <form name="data_form" id="data_form" action="{:U('Menu/sort')}">
                <tr>
                    <th style="width: 60px;">序号</th>
                    <th class="spin-tit">菜单名</th>
                    <th class="spin-tit" style="width: 220px;">菜单地址</th>
                    <th style="width: 80px;">是否显示</th>
                    <th style="width: 80px;">排序</th>
                    <th style="width: 180px;">操作</th>
                </tr>
                <volist name="data_list" id="vo">
                <tr>
                    <td>{$vo.menu_id}</td>
                    <td class="spin-tit">{$vo.name_pre} {$vo.name}</td>
                    <td class="spin-tit">{$vo.url}</td>
                    <td>{$yes_no_options[$vo[is_show]]}</td>
                    <td>
                        <input type="text" name="sort_values[]" value="{$vo.sort}" maxlength="6" class="input_sort" />
                        <input type="hidden" name="sort_ids[]" value="{$vo.menu_id}" />
                    </td>
                    <td>
                        <a href="{:U('Menu/add', array('parent_id'=>$vo[menu_id]))}" class="delfilebtn gray" >添加菜单</a>
                        &nbsp; | &nbsp;&nbsp;<a href="{:U('Menu/edit', array('menu_id'=>$vo[menu_id], 'parent_id'=>$vo[parent_id]))}" class="delfilebtn gray" >编辑</a>
                        &nbsp; | &nbsp;&nbsp;<a href="javascript:;" onclick="deleteMenu('{:U("Menu/delete", array("menu_id"=>$vo[menu_id]))}')" class="delfilebtn gray" >删除</a>
                    </td>
                </tr>
                </volist>
                </form>
            </table>
            <div class="page txt-center">
                {$data_list_data.pager}
            </div>
        </div>
    </div>
</div>